using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.OleDb;
using QuanLyThuVien1.DAO;
using QuanLyThuVien1.DTO;

namespace QuanLyThuVien1.BUS
{
    public class CPhieuTra_Bus
    {
        public DataTable LayDSCacPhieuTra()
        {
            CPHIEUTRA_DAO p = new CPHIEUTRA_DAO();
            return p.layDSPT();
        }
        public PHIEUTRA TimKiemTrenPhieuTra(string soPhieu)
        {
            CPHIEUTRA_DAO p = new CPHIEUTRA_DAO();
            return p.timKiemPT(soPhieu);
        }
        public void ThemPhieuTra(PHIEUTRA p)
        {
            CPHIEUTRA_DAO p1 = new CPHIEUTRA_DAO();
            p1.themPT(p);
        }
        public void XoaPhieuTra(string soPhieu)
        {
            CPHIEUTRA_DAO p = new CPHIEUTRA_DAO();
            p.XoaPT(soPhieu);
        }
        public bool KiemTraPhieuTra_Bus(string maPM)
        {
            CPHIEUTRA_DAO p = new CPHIEUTRA_DAO();
            return p.KiemTraPhieuTra(maPM);
        }
    }
}
